package com.dao;

import java.util.List;

import com.po.PageBean;
import com.po.PageList;


public interface BaseDao<T> {

	public void add(T t) throws Exception;
	public void update(T t) throws Exception;
	public void delete(T t) throws Exception;
	public void deleteById(java.io.Serializable id) throws Exception;
	public List<T> findAll() throws Exception;
	public PageList<T> findAll(PageBean pageBean) throws Exception;
	public T findById(java.io.Serializable id) throws Exception;
	public T findForObject(final T entity);
	public PageList<T> findForList(final T entity, final PageBean pageBean);
	
}
